﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Csla;

namespace EntGuayasSLA.BL.Listas.Criterias
{
   
    [Serializable]
    public class ValidaFichaCriteria : BusinessBase<ValidaFichaCriteria>
    {
        #region Business Methods

        public static readonly PropertyInfo<string> PreguntaIdProperty = RegisterProperty<string>(c => c.PreguntaId);
        public string PreguntaId
        {
            get { return GetProperty(PreguntaIdProperty); }
            set { SetProperty(PreguntaIdProperty, value); }
        }

        public static readonly PropertyInfo<string> ExpedienteProperty = RegisterProperty<string>(c => c.Expediente);
     
        public string Expediente
        {
            get { return GetProperty(ExpedienteProperty); }
            set { SetProperty(ExpedienteProperty, value); }
        }

        #endregion

        #region Factory Methods

        public static ValidaFichaCriteria NewFaseCriteriaEstado()
        {
            return DataPortal.Create<ValidaFichaCriteria>();
        }

        private ValidaFichaCriteria()
        { /* Require use of factory methods */ }

        public ValidaFichaCriteria(string ExpedienteIdTmp, string IdPregunta)
        {
            // TODO: Complete member initialization
            this.Expediente = ExpedienteIdTmp;
            this.PreguntaId = IdPregunta;
        }

        #endregion


    }
}
